package bus;

import java.util.List;

import dao.TestScoreDAO;
import dto.TestScoreDTO;

public class TestScoreBUS {
	public TestScoreDTO info = new TestScoreDTO();
	public TestScoreDAO data = new TestScoreDAO(null);
	
	public void setInfo(TestScoreDTO TestScore) {
		this.info = TestScore;
	}
	
	public TestScoreDTO getInfo() {
		return this.info;
	}
	
	public void addTestScore() {
		data.addTestScore(info);
	}
	
	public List<TestScoreDTO> getAllTestScores(){
		return data.getAllTestScores();
	}
	
	public boolean updateTestScore(){
		return data.updateTestScore(info);
	}
	
	public void deleteTestScore(){
		data.deleteTestScore(info);
	}
	
	public void deleteAllTestScores(){
		data.deleteAllTestScores();
	}
	
	public int getTestScoreCount(){
		return data.getTestScoreCount();
	}
}